package com.tulei.system.service.impl;

import com.tulei.common.utils.StringUtils;
import com.tulei.system.Entity.SysDictData;
import com.tulei.system.mapper.DictDataMapper;
import com.tulei.system.service.DictDataService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author TuLei
 * @Date 2024-06-17 12:20
 **/
@Service
@AllArgsConstructor
public class DictDataServiceImpl implements DictDataService {


    private final DictDataMapper dictDataMapper;

    @Override
    public List<SysDictData> selectDictDataByType(String dictType) {


        List<SysDictData> dictDatas = dictDataMapper.selectDictDataByType(dictType);
        if (StringUtils.isNotEmpty(dictDatas))
        {
            return dictDatas;
        }
        return null;
    }
}
